/*
 * @Author: ray ray.chin@163.com
 * @Date: 2022-01-14 13:36:46
 * @LastEditors: ray ray.chin@163.com
 * @LastEditTime: 2024-06-14 12:11:39
 * @FilePath: /app-template-uni-upgrade/api/api.js
 * @Description: 网络请求api
 * Copyright (c) 2024 by ray, All Rights Reserved.
 */
import {
    baseUrl,
} from "./config.js";
import md5 from "blueimp-md5";
import request from "./request.js";

const api = {};

// 账户+密码登录接口
api.loginWithPassword = (params) => {
    return request.globalRequest(`${baseUrl}/user/login`, "POST", params, 3);
};

export default api;
